﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Altairis.Sewen.Configuration {
    public class WikiLinkElement : ConfigurationElement {

        [ConfigurationProperty("resolveMode", IsRequired = false, DefaultValue = LinkResolveMode.Format)]
        public LinkResolveMode ResolveMode {
            get { return (LinkResolveMode)this["resolveMode"]; }
            set { this["resolveMode"] = value; }
        }

        [ConfigurationProperty("formatString", IsRequired = false, DefaultValue = "~/Default.aspx?page={0}")]
        public string FormatString {
            get { return (string)this["formatString"]; }
            set { this["formatString"] = value; }
        }

        [ConfigurationProperty("routeName", IsRequired = false, DefaultValue = "SewenWikiPage")]
        public string RouteName {
            get { return (string)this["routeName"]; }
            set { this["routeName"] = value; }
        }

        [ConfigurationProperty("slugValueName", IsRequired = false, DefaultValue = "slug")]
        public string SlugValueName {
            get { return (string)this["slugValueName"]; }
            set { this["slugValueName"] = value; }
        }

    }
}
